﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace SqlMiM.Common.Trace
{
    public class Notifier
    {

        private static Notifier current;

        public static Notifier Current
        {
            get
            {
                if (current == null)
                {
                    current = new Notifier();
                }

                return current;
            }
        }

        public Notifier()
        {
        }


        public void Notify(SqlInfoMessageEventArgs args)
        {
            if (!Context.Current.IsDebugEnabled)
                return;

            InfoMessage message = new InfoMessage(args);

        }


        public void Notify(InfoMessage message)
        {
            if (!Context.Current.IsDebugEnabled)
                return;

        }

        public void Notify(SqlException exception)
        {
            if (!Context.Current.IsDebugEnabled)
                return;

            InfoMessage message = new InfoMessage(exception);

        }

        public void Notify(Exception ex)
        {
            if (!Context.Current.IsDebugEnabled)
                return;

            InfoMessage message = new InfoMessage(ex);

            
        }


    }
}
